home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / creator / editor / AIEditorToolBar.gui < prev    next >
Text File  |  2005-11-23  |  2KB  |  91 lines

  1. //--- OBJECT WRITE BEGIN ---
  2. new GuiControl(AIEditorToolBar) {
  3.     profile = "GuiModelessDialogProfile";
  4.     horizSizing = "right";
  5.     vertSizing = "bottom";
  6.     position = "0 0";
  7.     extent = "640 480";
  8.     minExtent = "8 8";
  9.     visible = "1";
  10.     helpTag = "0";
  11.  
  12.     new GuiControl() {
  13.         profile = "GuiContentProfile";
  14.         horizSizing = "width";
  15.         vertSizing = "bottom";
  16.         position = "0 0";
  17.         extent = "640 30";
  18.         minExtent = "8 8";
  19.         visible = "1";
  20.         helpTag = "0";
  21.  
  22.         new GuiCheckBoxCtrl(AIEditorObjectivesTree1CheckBox) {
  23.             profile = "GuiRadioProfile";
  24.             horizSizing = "left";
  25.             vertSizing = "bottom";
  26.             position = "290 5";
  27.             extent = "114 20";
  28.             minExtent = "8 8";
  29.             visible = "1";
  30.             command = "AIEditorObjectivesTree1CheckBox.setTreeGui(1);";
  31.             helpTag = "0";
  32.             text = "Objectives Team 1";
  33.         };
  34.         new GuiCheckBoxCtrl(AIEditorObjectivesTree2CheckBox) {
  35.             profile = "GuiRadioProfile";
  36.             horizSizing = "left";
  37.             vertSizing = "bottom";
  38.             position = "405 5";
  39.             extent = "114 20";
  40.             minExtent = "8 8";
  41.             visible = "1";
  42.             command = "AIEditorObjectivesTree2CheckBox.setTreeGui(2);";
  43.             helpTag = "0";
  44.             text = "Objectives Team 2";
  45.         };
  46.         new GuiCheckBoxCtrl(AIEditorObjectivesInspectorCheckBox) {
  47.             profile = "GuiRadioProfile";
  48.             horizSizing = "left";
  49.             vertSizing = "bottom";
  50.             position = "520 5";
  51.             extent = "114 20";
  52.             minExtent = "8 8";
  53.             visible = "1";
  54.             command = "if($ThisControl.getValue()) AIEFrameSetDlg.addTool(EditorToolInspectorGui); else AIEFrameSetDlg.removeTool(EditorToolInspectorGui);";
  55.             helpTag = "0";
  56.             text = "Objectives Inspector";
  57.         };
  58.     };
  59. };
  60. //--- OBJECT WRITE END ---
  61.  
  62. function AIEditorToolBar::init(%this)
  63. {
  64. }
  65.  
  66. function AIEditorObjectivesTree1CheckBox::setTreeGui(%this, %team)
  67. {
  68.    $AIEditor::inspectTeam = %team;
  69.    AIEditorObjectivesTree2CheckBox.setValue(false);   
  70.    
  71.    if($ThisControl.getValue())
  72.       %isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui); 
  73.    else
  74.       %isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
  75.       
  76.    $ThisControl.setValue(%isSet);   
  77. }
  78.  
  79. function AIEditorObjectivesTree2CheckBox::setTreeGui(%this, %team)
  80. {
  81.    $AIEditor::inspectTeam = %team;
  82.    AIEditorObjectivesTree1CheckBox.setValue(false);   
  83.    
  84.    if($ThisControl.getValue())
  85.       %isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui); 
  86.    else
  87.       %isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
  88.       
  89.    $ThisControl.setValue(%isSet);   
  90. }
  91.